/**
 * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package it.apuliait.service.persistence;

import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil;
import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.util.OrderByComparator;
import com.liferay.portal.kernel.util.ReferenceRegistry;
import com.liferay.portal.service.ServiceContext;

import it.apuliait.model.LineaFattura;

import java.util.List;

/**
 * The persistence utility for the linea fattura service. This utility wraps {@link LineaFatturaPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
 *
 * <p>
 * Caching information and settings can be found in <code>portal.properties</code>
 * </p>
 *
 * @author Donatello
 * @see LineaFatturaPersistence
 * @see LineaFatturaPersistenceImpl
 * @generated
 */
public class LineaFatturaUtil {
	/*
	 * NOTE FOR DEVELOPERS:
	 *
	 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
	 */

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
	 */
	public static void clearCache() {
		getPersistence().clearCache();
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
	 */
	public static void clearCache(LineaFattura lineaFattura) {
		getPersistence().clearCache(lineaFattura);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
	 */
	public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
		throws SystemException {
		return getPersistence().countWithDynamicQuery(dynamicQuery);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
	 */
	public static List<LineaFattura> findWithDynamicQuery(
		DynamicQuery dynamicQuery) throws SystemException {
		return getPersistence().findWithDynamicQuery(dynamicQuery);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
	 */
	public static List<LineaFattura> findWithDynamicQuery(
		DynamicQuery dynamicQuery, int start, int end)
		throws SystemException {
		return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
	 */
	public static List<LineaFattura> findWithDynamicQuery(
		DynamicQuery dynamicQuery, int start, int end,
		OrderByComparator orderByComparator) throws SystemException {
		return getPersistence()
				   .findWithDynamicQuery(dynamicQuery, start, end,
			orderByComparator);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel)
	 */
	public static LineaFattura update(LineaFattura lineaFattura)
		throws SystemException {
		return getPersistence().update(lineaFattura);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
	 */
	public static LineaFattura update(LineaFattura lineaFattura,
		ServiceContext serviceContext) throws SystemException {
		return getPersistence().update(lineaFattura, serviceContext);
	}

	/**
	* Returns all the linea fatturas where documentoIDFK = &#63;.
	*
	* @param documentoIDFK the documento i d f k
	* @return the matching linea fatturas
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<it.apuliait.model.LineaFattura> findByCompetenze(
		long documentoIDFK)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findByCompetenze(documentoIDFK);
	}

	/**
	* Returns a range of all the linea fatturas where documentoIDFK = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.apuliait.model.impl.LineaFatturaModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
	* </p>
	*
	* @param documentoIDFK the documento i d f k
	* @param start the lower bound of the range of linea fatturas
	* @param end the upper bound of the range of linea fatturas (not inclusive)
	* @return the range of matching linea fatturas
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<it.apuliait.model.LineaFattura> findByCompetenze(
		long documentoIDFK, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findByCompetenze(documentoIDFK, start, end);
	}

	/**
	* Returns an ordered range of all the linea fatturas where documentoIDFK = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.apuliait.model.impl.LineaFatturaModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
	* </p>
	*
	* @param documentoIDFK the documento i d f k
	* @param start the lower bound of the range of linea fatturas
	* @param end the upper bound of the range of linea fatturas (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of matching linea fatturas
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<it.apuliait.model.LineaFattura> findByCompetenze(
		long documentoIDFK, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .findByCompetenze(documentoIDFK, start, end,
			orderByComparator);
	}

	/**
	* Returns the first linea fattura in the ordered set where documentoIDFK = &#63;.
	*
	* @param documentoIDFK the documento i d f k
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching linea fattura
	* @throws it.apuliait.NoSuchLineaFatturaException if a matching linea fattura could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static it.apuliait.model.LineaFattura findByCompetenze_First(
		long documentoIDFK,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			it.apuliait.NoSuchLineaFatturaException {
		return getPersistence()
				   .findByCompetenze_First(documentoIDFK, orderByComparator);
	}

	/**
	* Returns the first linea fattura in the ordered set where documentoIDFK = &#63;.
	*
	* @param documentoIDFK the documento i d f k
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching linea fattura, or <code>null</code> if a matching linea fattura could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static it.apuliait.model.LineaFattura fetchByCompetenze_First(
		long documentoIDFK,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .fetchByCompetenze_First(documentoIDFK, orderByComparator);
	}

	/**
	* Returns the last linea fattura in the ordered set where documentoIDFK = &#63;.
	*
	* @param documentoIDFK the documento i d f k
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching linea fattura
	* @throws it.apuliait.NoSuchLineaFatturaException if a matching linea fattura could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static it.apuliait.model.LineaFattura findByCompetenze_Last(
		long documentoIDFK,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			it.apuliait.NoSuchLineaFatturaException {
		return getPersistence()
				   .findByCompetenze_Last(documentoIDFK, orderByComparator);
	}

	/**
	* Returns the last linea fattura in the ordered set where documentoIDFK = &#63;.
	*
	* @param documentoIDFK the documento i d f k
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching linea fattura, or <code>null</code> if a matching linea fattura could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static it.apuliait.model.LineaFattura fetchByCompetenze_Last(
		long documentoIDFK,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .fetchByCompetenze_Last(documentoIDFK, orderByComparator);
	}

	/**
	* Returns the linea fatturas before and after the current linea fattura in the ordered set where documentoIDFK = &#63;.
	*
	* @param lineaFatturaId the primary key of the current linea fattura
	* @param documentoIDFK the documento i d f k
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the previous, current, and next linea fattura
	* @throws it.apuliait.NoSuchLineaFatturaException if a linea fattura with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static it.apuliait.model.LineaFattura[] findByCompetenze_PrevAndNext(
		long lineaFatturaId, long documentoIDFK,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			it.apuliait.NoSuchLineaFatturaException {
		return getPersistence()
				   .findByCompetenze_PrevAndNext(lineaFatturaId, documentoIDFK,
			orderByComparator);
	}

	/**
	* Removes all the linea fatturas where documentoIDFK = &#63; from the database.
	*
	* @param documentoIDFK the documento i d f k
	* @throws SystemException if a system exception occurred
	*/
	public static void removeByCompetenze(long documentoIDFK)
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().removeByCompetenze(documentoIDFK);
	}

	/**
	* Returns the number of linea fatturas where documentoIDFK = &#63;.
	*
	* @param documentoIDFK the documento i d f k
	* @return the number of matching linea fatturas
	* @throws SystemException if a system exception occurred
	*/
	public static int countByCompetenze(long documentoIDFK)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().countByCompetenze(documentoIDFK);
	}

	/**
	* Returns all the linea fatturas where documentoIDFK = &#63; and numeroDdt = &#63; and dataDdt = &#63;.
	*
	* @param documentoIDFK the documento i d f k
	* @param numeroDdt the numero ddt
	* @param dataDdt the data ddt
	* @return the matching linea fatturas
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<it.apuliait.model.LineaFattura> findByCompetenzeForDDT(
		long documentoIDFK, java.lang.String numeroDdt, java.lang.String dataDdt)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .findByCompetenzeForDDT(documentoIDFK, numeroDdt, dataDdt);
	}

	/**
	* Returns a range of all the linea fatturas where documentoIDFK = &#63; and numeroDdt = &#63; and dataDdt = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.apuliait.model.impl.LineaFatturaModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
	* </p>
	*
	* @param documentoIDFK the documento i d f k
	* @param numeroDdt the numero ddt
	* @param dataDdt the data ddt
	* @param start the lower bound of the range of linea fatturas
	* @param end the upper bound of the range of linea fatturas (not inclusive)
	* @return the range of matching linea fatturas
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<it.apuliait.model.LineaFattura> findByCompetenzeForDDT(
		long documentoIDFK, java.lang.String numeroDdt,
		java.lang.String dataDdt, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .findByCompetenzeForDDT(documentoIDFK, numeroDdt, dataDdt,
			start, end);
	}

	/**
	* Returns an ordered range of all the linea fatturas where documentoIDFK = &#63; and numeroDdt = &#63; and dataDdt = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.apuliait.model.impl.LineaFatturaModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
	* </p>
	*
	* @param documentoIDFK the documento i d f k
	* @param numeroDdt the numero ddt
	* @param dataDdt the data ddt
	* @param start the lower bound of the range of linea fatturas
	* @param end the upper bound of the range of linea fatturas (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of matching linea fatturas
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<it.apuliait.model.LineaFattura> findByCompetenzeForDDT(
		long documentoIDFK, java.lang.String numeroDdt,
		java.lang.String dataDdt, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .findByCompetenzeForDDT(documentoIDFK, numeroDdt, dataDdt,
			start, end, orderByComparator);
	}

	/**
	* Returns the first linea fattura in the ordered set where documentoIDFK = &#63; and numeroDdt = &#63; and dataDdt = &#63;.
	*
	* @param documentoIDFK the documento i d f k
	* @param numeroDdt the numero ddt
	* @param dataDdt the data ddt
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching linea fattura
	* @throws it.apuliait.NoSuchLineaFatturaException if a matching linea fattura could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static it.apuliait.model.LineaFattura findByCompetenzeForDDT_First(
		long documentoIDFK, java.lang.String numeroDdt,
		java.lang.String dataDdt,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			it.apuliait.NoSuchLineaFatturaException {
		return getPersistence()
				   .findByCompetenzeForDDT_First(documentoIDFK, numeroDdt,
			dataDdt, orderByComparator);
	}

	/**
	* Returns the first linea fattura in the ordered set where documentoIDFK = &#63; and numeroDdt = &#63; and dataDdt = &#63;.
	*
	* @param documentoIDFK the documento i d f k
	* @param numeroDdt the numero ddt
	* @param dataDdt the data ddt
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching linea fattura, or <code>null</code> if a matching linea fattura could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static it.apuliait.model.LineaFattura fetchByCompetenzeForDDT_First(
		long documentoIDFK, java.lang.String numeroDdt,
		java.lang.String dataDdt,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .fetchByCompetenzeForDDT_First(documentoIDFK, numeroDdt,
			dataDdt, orderByComparator);
	}

	/**
	* Returns the last linea fattura in the ordered set where documentoIDFK = &#63; and numeroDdt = &#63; and dataDdt = &#63;.
	*
	* @param documentoIDFK the documento i d f k
	* @param numeroDdt the numero ddt
	* @param dataDdt the data ddt
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching linea fattura
	* @throws it.apuliait.NoSuchLineaFatturaException if a matching linea fattura could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static it.apuliait.model.LineaFattura findByCompetenzeForDDT_Last(
		long documentoIDFK, java.lang.String numeroDdt,
		java.lang.String dataDdt,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			it.apuliait.NoSuchLineaFatturaException {
		return getPersistence()
				   .findByCompetenzeForDDT_Last(documentoIDFK, numeroDdt,
			dataDdt, orderByComparator);
	}

	/**
	* Returns the last linea fattura in the ordered set where documentoIDFK = &#63; and numeroDdt = &#63; and dataDdt = &#63;.
	*
	* @param documentoIDFK the documento i d f k
	* @param numeroDdt the numero ddt
	* @param dataDdt the data ddt
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching linea fattura, or <code>null</code> if a matching linea fattura could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static it.apuliait.model.LineaFattura fetchByCompetenzeForDDT_Last(
		long documentoIDFK, java.lang.String numeroDdt,
		java.lang.String dataDdt,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .fetchByCompetenzeForDDT_Last(documentoIDFK, numeroDdt,
			dataDdt, orderByComparator);
	}

	/**
	* Returns the linea fatturas before and after the current linea fattura in the ordered set where documentoIDFK = &#63; and numeroDdt = &#63; and dataDdt = &#63;.
	*
	* @param lineaFatturaId the primary key of the current linea fattura
	* @param documentoIDFK the documento i d f k
	* @param numeroDdt the numero ddt
	* @param dataDdt the data ddt
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the previous, current, and next linea fattura
	* @throws it.apuliait.NoSuchLineaFatturaException if a linea fattura with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static it.apuliait.model.LineaFattura[] findByCompetenzeForDDT_PrevAndNext(
		long lineaFatturaId, long documentoIDFK, java.lang.String numeroDdt,
		java.lang.String dataDdt,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			it.apuliait.NoSuchLineaFatturaException {
		return getPersistence()
				   .findByCompetenzeForDDT_PrevAndNext(lineaFatturaId,
			documentoIDFK, numeroDdt, dataDdt, orderByComparator);
	}

	/**
	* Removes all the linea fatturas where documentoIDFK = &#63; and numeroDdt = &#63; and dataDdt = &#63; from the database.
	*
	* @param documentoIDFK the documento i d f k
	* @param numeroDdt the numero ddt
	* @param dataDdt the data ddt
	* @throws SystemException if a system exception occurred
	*/
	public static void removeByCompetenzeForDDT(long documentoIDFK,
		java.lang.String numeroDdt, java.lang.String dataDdt)
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence()
			.removeByCompetenzeForDDT(documentoIDFK, numeroDdt, dataDdt);
	}

	/**
	* Returns the number of linea fatturas where documentoIDFK = &#63; and numeroDdt = &#63; and dataDdt = &#63;.
	*
	* @param documentoIDFK the documento i d f k
	* @param numeroDdt the numero ddt
	* @param dataDdt the data ddt
	* @return the number of matching linea fatturas
	* @throws SystemException if a system exception occurred
	*/
	public static int countByCompetenzeForDDT(long documentoIDFK,
		java.lang.String numeroDdt, java.lang.String dataDdt)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .countByCompetenzeForDDT(documentoIDFK, numeroDdt, dataDdt);
	}

	/**
	* Caches the linea fattura in the entity cache if it is enabled.
	*
	* @param lineaFattura the linea fattura
	*/
	public static void cacheResult(it.apuliait.model.LineaFattura lineaFattura) {
		getPersistence().cacheResult(lineaFattura);
	}

	/**
	* Caches the linea fatturas in the entity cache if it is enabled.
	*
	* @param lineaFatturas the linea fatturas
	*/
	public static void cacheResult(
		java.util.List<it.apuliait.model.LineaFattura> lineaFatturas) {
		getPersistence().cacheResult(lineaFatturas);
	}

	/**
	* Creates a new linea fattura with the primary key. Does not add the linea fattura to the database.
	*
	* @param lineaFatturaId the primary key for the new linea fattura
	* @return the new linea fattura
	*/
	public static it.apuliait.model.LineaFattura create(long lineaFatturaId) {
		return getPersistence().create(lineaFatturaId);
	}

	/**
	* Removes the linea fattura with the primary key from the database. Also notifies the appropriate model listeners.
	*
	* @param lineaFatturaId the primary key of the linea fattura
	* @return the linea fattura that was removed
	* @throws it.apuliait.NoSuchLineaFatturaException if a linea fattura with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static it.apuliait.model.LineaFattura remove(long lineaFatturaId)
		throws com.liferay.portal.kernel.exception.SystemException,
			it.apuliait.NoSuchLineaFatturaException {
		return getPersistence().remove(lineaFatturaId);
	}

	public static it.apuliait.model.LineaFattura updateImpl(
		it.apuliait.model.LineaFattura lineaFattura)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().updateImpl(lineaFattura);
	}

	/**
	* Returns the linea fattura with the primary key or throws a {@link it.apuliait.NoSuchLineaFatturaException} if it could not be found.
	*
	* @param lineaFatturaId the primary key of the linea fattura
	* @return the linea fattura
	* @throws it.apuliait.NoSuchLineaFatturaException if a linea fattura with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static it.apuliait.model.LineaFattura findByPrimaryKey(
		long lineaFatturaId)
		throws com.liferay.portal.kernel.exception.SystemException,
			it.apuliait.NoSuchLineaFatturaException {
		return getPersistence().findByPrimaryKey(lineaFatturaId);
	}

	/**
	* Returns the linea fattura with the primary key or returns <code>null</code> if it could not be found.
	*
	* @param lineaFatturaId the primary key of the linea fattura
	* @return the linea fattura, or <code>null</code> if a linea fattura with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static it.apuliait.model.LineaFattura fetchByPrimaryKey(
		long lineaFatturaId)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().fetchByPrimaryKey(lineaFatturaId);
	}

	/**
	* Returns all the linea fatturas.
	*
	* @return the linea fatturas
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<it.apuliait.model.LineaFattura> findAll()
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findAll();
	}

	/**
	* Returns a range of all the linea fatturas.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.apuliait.model.impl.LineaFatturaModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
	* </p>
	*
	* @param start the lower bound of the range of linea fatturas
	* @param end the upper bound of the range of linea fatturas (not inclusive)
	* @return the range of linea fatturas
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<it.apuliait.model.LineaFattura> findAll(
		int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findAll(start, end);
	}

	/**
	* Returns an ordered range of all the linea fatturas.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.apuliait.model.impl.LineaFatturaModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
	* </p>
	*
	* @param start the lower bound of the range of linea fatturas
	* @param end the upper bound of the range of linea fatturas (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of linea fatturas
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<it.apuliait.model.LineaFattura> findAll(
		int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findAll(start, end, orderByComparator);
	}

	/**
	* Removes all the linea fatturas from the database.
	*
	* @throws SystemException if a system exception occurred
	*/
	public static void removeAll()
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().removeAll();
	}

	/**
	* Returns the number of linea fatturas.
	*
	* @return the number of linea fatturas
	* @throws SystemException if a system exception occurred
	*/
	public static int countAll()
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().countAll();
	}

	public static LineaFatturaPersistence getPersistence() {
		if (_persistence == null) {
			_persistence = (LineaFatturaPersistence)PortletBeanLocatorUtil.locate(it.apuliait.service.ClpSerializer.getServletContextName(),
					LineaFatturaPersistence.class.getName());

			ReferenceRegistry.registerReference(LineaFatturaUtil.class,
				"_persistence");
		}

		return _persistence;
	}

	/**
	 * @deprecated As of 6.2.0
	 */
	public void setPersistence(LineaFatturaPersistence persistence) {
	}

	private static LineaFatturaPersistence _persistence;
}